<template>
  <router-view></router-view>
</template>
<script setup lang="ts">
import { Edit } from '@element-plus/icons-vue'
import { onMounted } from 'vue'
import request from '@/utils/request'

const handler1 = () => {
  console.log('点击了按钮')
}

onMounted(() => {
  request
    .get('/vue3role/selectAll')
    .then((res) => {
      console.log('请求URL：vue3role/selectAll 的结果是：')
      console.log(res)
    })
    .catch((err) => console.log(err))
    .finally(() => console.log('进入到 finally'))
})
</script>
<style scoped lang="scss">
div {
  h1 {
    color: $color;
  }
}
</style>
